*** Settings ***
Library    String
Library    Collections
*** Test Cases ***
Check lastname
    ${last_name}=    Get My Lastname    Shantell Spouse    ${False}
    ${last_name11}=    Get My Lastname    Shantell Spouse1    wait_for_next_page=${False}
    Log    ${last_name}
    
Check all user info
    ${user_list}=    Create List
    FOR    ${index}    IN RANGE    ${4}
        Append To List    ${user_list}    hello${index}
    END
    Get All User Info    ${user_list}
*** Keywords ***
get my lastname
    [Arguments]      ${username}    ${wait_for_next_page}=${True}    
    ${name_list}=    Split String    ${username}    separator=${SPACE}
    Should Not Be Empty      ${name_list}
    RETURN  ${name_list}[${-1}]   
    
get all user info
    [Arguments]    ${user_list}
    FOR    ${user}    IN    @{user_list}
        Log    ${user}
    END